package com.ykdl.member.kid.adapters;

import java.util.List;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
/********************************************************************************

** 作者： jiafeiyu
** 创始时间：2015-4-27
** 描述：
**    viewpager统一使用的fragmentAdapter

*********************************************************************************/
public class MyPagerAdapter extends FragmentPagerAdapter {

	private List<Fragment> mFragList;
	
	public MyPagerAdapter(FragmentManager fm,List<Fragment> mFragList) {
		super(fm);
		this.mFragList = mFragList;
	}
	

	@Override
	public Fragment getItem(int position) {
		
		return mFragList.get(position);
	}

	@Override
	public int getCount() {
		// TODO Auto-generated method stub
		return mFragList.size();
	}

}
